<?php
namespace app\admin\controller;

use think\Controller;
use app\admin\service\ReportService;

class Report extends Controller
{
    private $reportService;

    /**
     * 依赖注入 Service
     *
     * @param ReportService $reportService
     * @author zws
     */
    public function __construct(ReportService $reportService)
    {
        $this->reportService = $reportService;
        parent::__construct();
    }

    /**
     * 检测报告列表
     * @return \think\response\Json
     * @author zws
     */
    public function index()
    {
        $input = $this->request->input;
        $result = $this->reportService->index($input);
        return app_response(200, $result);
    }

    /**
     * 删除检测报告
     * @return \think\response\Json
     * @author zws
     */
    public function delete(){
        $input = $this->request->input;
        $result = $this->reportService->update($input);
        return app_response(200, $result);
    }


}